/**
 * 根据不同的域名获取不同的api地址
 * 2018-11-03
 * zhanglibin
 */

function host () {
  const url = window.location.hostname
  let name = 'yk91.test.huatu.com'
  if (url === 'mmc-snjh5.huatu.com') {
    name = 'mmc-test.huatu.com'
  } else if (url === 'mmc-snjh5.eka123.com') {
    name = 'mmc.ekao123.com'
  } else {
    name = 'mmc-test.huatu.com'
  }
  return 'http://' + name + '/'
}
export default host()
